﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CubicFWNet.Data.ViewModal
{
    public class ReconciliationView
    {
        public System.Guid Id { get; set; }
        /// <summary>
        /// 采购Id
        /// </summary>
        public System.Guid PurchaseComposeId { get; set; }
        /// <summary>
        /// -1:未审核 1：审核成功
        /// </summary>
        public int Status { get; set; }
        public Nullable<System.Guid> CreatorId { get; set; }
        public string CreatorName { get; set; }
        public Nullable<System.DateTime> CreateTime { get; set; }
        public System.DateTime ApplyTime { get; set; }
        /// <summary>
        /// 应收（付）数量
        /// </summary>
        public decimal ShouldAmount { get; set; }
        /// <summary>
        /// 实际收（付）数量
        /// </summary>
        public decimal ActualAmount { get; set; }
        /// <summary>
        /// 发票号
        /// </summary>
        public string FinanceNumber { get; set; }

        public string Memo { get; set; }

        public string ProductName { get; set; }
        public Guid ProductId { get; set; }

        public string SupplierName { get; set; }

        public decimal StandardAmount { get; set; }

        public decimal Amount { get; set; }

        public decimal CostPrice { get; set; }
        public decimal TotalMoney { get; set; }
        public int ReconciliationType { get; set; }

        public string ReconciliationTypeStr
        {
            get
            {
                if (ReconciliationType == 0)
                {
                    return "预付";
                }
                else
                {
                    return "月结"; 
                }
            }
        }
    }
}
